
sys.taskInit(function()
    local ret, device_id = sys.waitUntil("net_ready")
    local url = 'http://139.159.146.106:8081/api/remoteDevice/totalConfig/'..device_id
    log.info('url======'..url)
    local code, headers, body = http.request("GET", url).wait()
    if body then
        local config = json.decode(body)
        log.info("config file loaded by network: ", body)
        sys.publish("CONFIG_READY",config)
    end
end)